using System.Collections.Generic;

namespace Magiq.Databases.Delete
{
    public class DatabaseDelete<T> : DatabaseOperation
    {
        public DatabaseDelete(IDatabaseAdapter databaseAdapter)
        {
            SourceTypeMapping = databaseAdapter.GetMappingOf(typeof (T));
            DatabaseAdapter = databaseAdapter;
        }

        public ITypeMapping SourceTypeMapping { get; set; }
        public IEnumerable<T> Source { get; set; }
    }
}